<{include file="header.tpl"}>
<!--script type="text/javascript" src="../ueditor/ueditor.config.js"></script-->
<!--script type="text/javascript" src="../ueditor/ueditor.all.min.js"></script-->

<div class="comBox">
    <form name="myform" id="myform" actiom="" method="POST" enctype='multipart/form-data' >
        <div class="comHeader">
            <h2>添加书籍</h2>
        </div>
        <div class="comTable bt">
            <div class="info-block">
                <table class="siteInfo">
                    <tr>
                        <th width="100px">书籍名字</th>
                        <td>
                            <input type='input' name='book_name' id="book_name" class="text"/>
                            <span class="onShow">书籍名字不能为空!且不能加上  /\\:*?<>| 这些特殊符号！</span>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">作者名字</th>
                        <td>
                            <input type='input' name='author' id="author" class="text"/>
                            <span class="onShow">作者名字不能为空!</span>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">书籍分类</th>
                        <td>
                            <select name="book_type" style="width: 120px;">
                                <option value="">请选择</option>
                                <{html_options options=$type_arr selected=$type_arr_ted}>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">书籍标签</th>
                        <td>
                            <input type="checkbox" name = "" value ="" rel = "parent">全选<br/>
                            <{foreach from=$tag_arr key=k item=v}>
                        <input type="checkbox" name='book_tag[]' rel ="child"  value="<{$k}>" /> <{$v}>&nbsp;
                            <{/foreach}>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">书籍后缀</th>
                        <td>
                            <input type='input' name='book_suffix' id="book_suffix" class="text"/>
                            <span class="onShow">书籍后缀不能为空!文件名后缀</span>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">网络下载的地址</th>
                        <td>
                            <textarea  name='down_url' id="down_url" style="width: 300px;height:30px;"></textarea>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">1是0否生成静态page页</th>
                        <td>
                            <select name="is_page">
                                <option value="">请选择</option>
                                <option value="0">没有</option>
                                <option value="1">已生成</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">是否已下载到本地</th>
                        <td>
                            <select name="is_down">
                                <option value="">请选择</option>
                                <option value="0">没有</option>
                                <option value="1">已下载</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="100px">选择书籍文件</th>
                        <td>
                            <input name='file' type='file' />
                        </td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type ="submit" class = "sub" value = "提交">
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</div>
<{include file="footer.tpl"}>

